<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <style>
        body {
            padding: 0%;
            margin: 0%;
        }

        div.contaner {
            /* overflow: hidden; */
        }

        div.contaner::after {
            display: block;
            content: "";
            clear:both;
        }

        div.float {
            width: 200px;
            height: 200px;
            float: left;
            position: relative;
        }
    </style>

    <div class="contaner">
        <div class="float" style="background: #333">
            dsad
        </div>
        <div class="float" style="background: #444">
            dsad
        </div>
        <div class="float" style="background: #555">
            dsad
        </div>
        <div class="float" style="background: #666">
            dsad
        </div>
    </div>
</body>

</html>